/** 
 * Project Name:eleme-website 
 * File Name:ShopMainServiceImpl.java 
 * Package Name:com.eleme.service.impl 
 * Date:2017年12月30日下午6:02:52 
 * Copyright (c) 2017, fakedesigner@163.com All Rights Reserved. 
 * 
*/  
  
package com.eleme.service.impl;

import com.eleme.dao.IDaoFactory;
import com.eleme.dao.IShopMainDao;
import com.eleme.entity.V_Shop_Main;
import com.eleme.service.IShopMainService;
import com.google.gson.GsonBuilder;

/** 
 * ClassName:ShopMainServiceImpl <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2017年12月30日 下午6:02:52 <br/> 
 * @author   Vane 
 * @version   
 * @since    JDK 1.8 
 * @see       
 */
public class ShopMainServiceImpl extends BaseServiceImpl<V_Shop_Main> implements IShopMainService {
	
	private IShopMainDao dao;
	
	public ShopMainServiceImpl(IDaoFactory factory) {
		super(factory.getShopMainDao());
		dao = (IShopMainDao) super.getDao();
	}
	
	public String getShopMainJSON(int bussiness) {
		
		return new GsonBuilder().create().toJson(dao.getShopMenu(bussiness));
	}
}
 